﻿


function OnLoadEvent(){
    $("div.wit").hover(ListItemHoverIn, ListItemHoverOut).click(function () { 
        
     $(this).removeClass("file-selected-highlight");
     $(this).addClass("file-select");

     });
}

function ListItemHoverIn(){
    $(this).addClass("file-selected-highlight");
    $(this).find("div .dropdown-arrow").css("visibility","visible");
}


function ListItemHoverOut(){
    $(this).removeClass("file-selected-highlight");
    $(this).find("div .dropdown-arrow").css("visibility","hidden"); 
}


function load_directory(path){
    $('#list-view').animate({opacity:'0.2'},500);
    $('#list-view').load(path, function () {
        $("#list-view").stop().animate({opacity:'1.0'},1);
        OnLoadEvent(); 
        } ); 
    return false;
} 